Skip to content

Fix: register issue no build artifact#271

Open
LandynDev wants to merge 16 commits intotestfrom
fix/register-issue-no-build-artifact
Open

Fix: register issue no build artifact#271
LandynDev wants to merge 16 commits intotestfrom
fix/register-issue-no-build-artifact

Conversation

@LandynDev
Copy link
Collaborator

Summary

Refactor gitt register to use IssueCompetitionContractClient instead of ContractInstance, removing the requirement for a locally-built .contract
file. Users no longer need Rust/cargo-contract installed to run CLI commands.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Testing

  • Tests added/updated
  • Manually tested

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Changes are documented (if applicable)

bittoby and others added 16 commits March 2, 2026 15:14
)

Co-authored-by: bittoby <bittoby@users.noreply.github.com>
Co-authored-by: Ander <61125407+anderdc@users.noreply.github.com>
…a_web_agents_subnet (#251)

Co-authored-by: Nicknamess96 <113626193+Nicknamess96@users.noreply.github.com>
Co-authored-by: Ander <61125407+anderdc@users.noreply.github.com>
Co-authored-by: BitToby <218712309+bittoby@users.noreply.github.com>
Co-authored-by: bittoby <bittoby@users.noreply.github.com>
Co-authored-by: Muhammet Eren Karakuş <erenkar950@gmail.com>
…epo (#256)

Co-authored-by: Ander <61125407+anderdc@users.noreply.github.com>
Co-authored-by: Ander <61125407+anderdc@users.noreply.github.com>
Co-authored-by: anderdc <alexanderdcastaneda@gmail.com>
Co-authored-by: Ander <61125407+anderdc@users.noreply.github.com>
Co-authored-by: Ander <61125407+anderdc@users.noreply.github.com>
Co-authored-by: Ander <61125407+anderdc@users.noreply.github.com>
…268)

Co-authored-by: Ander <61125407+anderdc@users.noreply.github.com>
Co-authored-by: James Scott <JamesScott.1020@outlook.com>
Co-authored-by: Ander <61125407+anderdc@users.noreply.github.com>
Co-authored-by: Ander <61125407+anderdc@users.noreply.github.com>
The `gitt register` command used `ContractInstance` from substrate-interface,
which required the compiled `.contract` file at
smart-contracts/issues-v0/target/ink/issue_bounty_manager.contract.
This meant users had to install Rust toolchains and build the contract
locally just to run CLI commands.

Refactored to use IssueCompetitionContractClient (raw extrinsic approach)
which only needs the pre-extracted metadata.json already checked into the
repo — consistent with every other contract-interacting command.

Changes:
- Add `str` SCALE encoding support to _encode_args()
- Add register_issue() method to IssueCompetitionContractClient
- Refactor mutations.py to use contract client instead of ContractInstance
- Remove unused Path import and substrate-interface contracts dependency
@LandynDev
Copy link
Collaborator Author

LandynDev commented Mar 7, 2026

Lets not approve this until I register a bounty with these changes, just to test it

@anderdc
Copy link
Collaborator

anderdc commented Mar 12, 2026

can you mark this one as a draft if so?

@anderdc anderdc force-pushed the test branch 3 times, most recently from bcd7b1f to 4e74e2a Compare March 16, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants